﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public abstract class Resource
    {
        public int ResourceId { get;  set; }
        public string Description { get;  set; }
        public virtual Member ProviderMember { get; set; }
    }

    public sealed class ResourceConfiguration : EntityTypeConfiguration<Resource>
    {
        public ResourceConfiguration()
        {
            Property(r => r.Description).IsRequired();
            HasRequired(r => r.ProviderMember);
        }
    }
}
